package practice1;

public class Node {
	private int value;
	private Node preNode = null;
	private Node nextNode = null;
	public void setValue(int value) {
		this.value = value;
	}
	public int getValue() {
		return value;
	}
	public Node getNext() {
		return nextNode;
	}
	public void setNext(Node next) {
		this.nextNode = next;
	}
	public Node getPreNode() {
		return preNode;
	}
	public void setPreNode(Node pre) {
		this.preNode = pre;
	}
	public  Node(int val) {
		this.value = val;
	}

}
